package com.panfeng.xcloud.boss.provider.rpc.assets;

import com.panfeng.xcloud.boss.provider.dto.request.OperateBotReqDTO;
import com.panfeng.xcloud.boss.provider.rpc.fallback.ExecuteOrderServiceApiFeignApiFallback;
import com.panfeng.xcloud.common.core.web.vo.ResponseVO;
import com.panfeng.xcloud.common.security.feign.FeignOAuth2AutoConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "xcloud-boss-provider-assets", configuration = FeignOAuth2AutoConfiguration.class, fallback = ExecuteOrderServiceApiFeignApiFallback.class)
public interface ExecuteOrderServiceFeignApi {

    @PostMapping(value = "/feignApi/assets/chooseSendOrderHttp")
    ResponseVO chooseSendOrderHttp(@RequestBody OperateBotReqDTO operateBotReqDTO, @RequestParam(value = "systemInnerType") Integer systemInnerType);

    @PostMapping(value = "/feignApi/assets/toSetOpenOrderAmount")
    ResponseVO toSetOpenOrderAmount(@RequestBody OperateBotReqDTO operateBotReqDTO, @RequestParam(value = "amount") BigDecimal amount);

}
